I want to have a 'box' on my web page which scrolls horizontally.
The contents of the box will have images. There could be one image (then there will be no scrolling) or there could be 8 images (and there will need to be a horizontal scroll bar).
I have managed to do something like it having a div within a div
The outer div is just one which is about 700px - width of the web page
I set the inner div to a width of about 1790px - that works find if its got the 8 images. However, if its got just one image it still has the horizontal scroll bar.
Question
asy1mpo
I want to have a 'box' on my web page which scrolls horizontally.
The contents of the box will have images. There could be one image (then there will be no scrolling) or there could be 8 images (and there will need to be a horizontal scroll bar).
I have managed to do something like it having a div within a div
The outer div is just one which is about 700px - width of the web page
I set the inner div to a width of about 1790px - that works find if its got the 8 images. However, if its got just one image it still has the horizontal scroll bar.
Any ideas??
Link to comment
https://www.neowin.net/forum/topic/567244-horizontal-scrolling-div-box/Share on other sites
5 answers to this question
Recommended Posts